class ListClubsController < ApplicationController
  def list
    favclub = params['favclub']
    clubs = Club.find(:all, :conditions => ["name LIKE ?", "%#{favclub}%"])    
    html = "<ul class=\"favclub_list\">"
    clubs.each do |club|
      html << "<li class=\"favclub_list\" id=\"club_" << club.id.to_s << "\">" << club.name << "</li>"
    end
    html << "<ul>"
    render :text => html
  end
end
